import React, {Component} from "react";
import Checkerboard from "./Checkerboard";

//面板组件
export default class Panel extends Component {

    playChess(row, col) {
        this.props.playChess(row, col)
    }

    render() {
        return (
            <div className="five-game-panel">
                <Checkerboard boardData={this.props.boardData} playChess={this.playChess.bind(this)}/>
            </div>
        )
    }

}